home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
igo
/
src
/
ex_egb.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-08
|
888b
|
48 lines
/*
TOWNS囲碁棋譜記録プログラム
1991/12/11 久保田俊也
93/01/02 GNUC からHIGHC 移行のため作成
*/
#include <EGB.H>
extern char para[64] ;
int EGB_setPalette( char *work, int col_no, int blue, int red, int green)
{
DWORD(para + 0) = 1;
DWORD(para + 4) = col_no;
BYTE(para + 8) = blue;
BYTE(para + 9) = red;
BYTE(para + 10) = green;
return ( EGB_palette( work, 1, para ));
}
int EGB_box( char *work, int x1, int y1, int x2, int y2 )
{
WORD(para + 0) = x1;
WORD(para + 2) = y1;
WORD(para + 4) = x2;
WORD(para + 6) = y2;
return ( EGB_rectangle( work, para ));
}
int EGB_singleLine( char *work, int x1, int y1, int x2, int y2 )
{
WORD(para + 0) = 2;
WORD(para + 2) = x1;
WORD(para + 4) = y1;
WORD(para + 6) = x2;
WORD(para + 8) = y2;
return ( EGB_connect( work, para ));
}